package com.sen.patterns.creational.factory.ex5;

/**
 * 北方花园类，用于生产北方蔬菜和水果
 * 
 * @author sen
 * 
 */
public class NorthenGardener implements Gardener {
	
	private static NorthenGardener _INSTANCE = new NorthenGardener();
	
	private NorthenGardener() {
		
	}
	
	public static NorthenGardener getInstance() {
		return _INSTANCE;
	}

	/**
	 * 创建北方蔬菜产品
	 * @param name
	 * @return
	 */
	public IVeggie createVeggie(String name) {
		return new NorthernVeggie(name);
	}

	/**
	 * 创建北方水果产品
	 * @param name
	 * @return
	 */
	public IFruit createFruit(String name) {
		return new NorthernFruit(name);
	}
	
	

}
